package com.yanqu.road.server.cmd.match;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.match.MatchModule;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;

/**
 * @author ：zfr
 * @date ：2021/2/23 16:15
 */
@Cmd(code = GameProtocol.S_VARIETY_SYNC_VARIETY_RED_POT, desc = "同步红点")
public class SyncVarietyRedPotCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.getModule(MatchModule.class).syncRedPot();
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
